window.onload = function () {
  let info = document.getElementsByClassName("info")[0];
  window.onscroll = function () {
    info.style.top = window.pageYOffset + 20 + 'px';
  }
}